package util;

import java.util.ArrayList;
/**
 * a simple tool for ComboBox
 * @author Patrick
 *
 */
public class ArrayTransfer {
    public static String[] transString(ArrayList<String> list) {
        if (list == null || list.size() == 0) {
            return null;
        } else {
            String[] array = new String[list.size()];
            for (int i = 0; i < list.size(); i++) {
                array[i] = list.get(i);
            }
            return array;
        }
    }
}
